﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities
{
    public class Validation
    {
        public static Boolean validateTextPresentInPage(string strExpectedText)
        {
            if (!strExpectedText.Equals(""))
            {
                Boolean blValidation = Utilities.GlobalObject.MANAGER.ActiveBrowser.ContainsText(strExpectedText) ? true : false;
                if (!blValidation)
                {
                    throw new Exception("Fail to validateTextPresentInPage [" + strExpectedText + "]");
                }
                else return true;
            }
            return true;
        }
    }
}
